package com.android.mg.tabswipe.adapter;

import com.android.mg.tabsswipe.CommingParaderosFragment;
import com.android.mg.tabsswipe.DownParaderosFragment;
import com.android.mg.tabsswipe.UpParaderosFragment;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;


public class TabsPagerAdapterParaderos extends FragmentPagerAdapter {

	public TabsPagerAdapterParaderos( FragmentManager fm )
	{
		super(fm);
	}
	
	@Override
	public Fragment getItem(int index) {
		
		switch (index) {
		case 0:
			return new UpParaderosFragment();
		case 1:
			return new DownParaderosFragment();
		case 2:
			return new CommingParaderosFragment();
		}
		
		return null;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 3;
	}

}
